﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using UserNotificationAspMvc;
using UserNotificationAspMvc.Models;


namespace NotificationsUnitTests
{
    [TestClass]
    public class UserNotificationTestcs
    {

        [TestMethod]
        public void UserNotificationSetsDefaultParameters()
        {
            //arange
            UserNotification notification = new UserNotification("New Message");


            //act
            var duration =  notification.Duration;
            var width = notification.Width;
            var type = notification.Type;

            //assert
            Assert.AreEqual(2200, duration);
            Assert.AreEqual(300, width);
            Assert.AreEqual("info", type);
        }
    }
}
